//
//  HROrder.h
//  haierapp
//
//  Created by gaotangzhang on 14-8-26.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "JSONModel.h"

#import "HROrderProductInfo.h"

typedef enum{
    ACTIVITY_TYPE_NORMAL = 0, //普通商品
    ACTIVITY_TYPE_PRE_PAYMENT = 1,//预付款
    ACTIVITY_TYPE_BUNDLE = 2,//绑定
    ACTIVITY_TYPE_LIMIT_TIME = 3 //限时抢购
}ACTIVITY_TYPE;

@protocol HROrder
@end

@interface HROrder : JSONModel


@property(nonatomic,strong) NSString <Optional> *orderId;   //订单ID
@property(nonatomic,strong) NSString <Optional> *orderNo;   //订单编号
@property(nonatomic,strong) NSString <Optional> *orderStateStr; //订单状态
@property(nonatomic,strong) NSString <Optional> *orderStateText; //订单状态字符串
@property(nonatomic,strong) NSString <Optional> *orderAmount;    //总价
@property(nonatomic,strong) NSArray <Optional,HROrderProductInfo> *productList;    //产品列表
@property(nonatomic,strong) NSString <Optional> *freight;       //运费
@property(nonatomic,strong) NSString <Optional> *name;          //收货人
@property(nonatomic,strong) NSString <Optional> *phone;         //收货人联系方式
@property(nonatomic,strong) NSString <Optional> *addr;          //收获地址
@property(nonatomic,strong) NSString <Optional> *postSate;      //快递状态
@property(nonatomic,strong) NSString <Optional> *postDate;      //快递当前状态时间
@property(nonatomic,strong) NSString <Optional> *alipayNo;      //支付宝交易号
@property(nonatomic,strong) NSString <Optional> *createDate;    //创建时间
@property(nonatomic,strong) NSString <Optional> *subDate;       //成交时间
@property(nonatomic,strong) NSString <Optional> *fhDate;        //发货时间
@property(nonatomic,strong) NSString <Optional> *qrDate;        //确认时间

@property(nonatomic,strong) NSString <Optional> *totalPrice;//总价

@property(nonatomic,strong) NSString <Optional> *isActivity; //0普通商品 1预售 2捆绑 3限时抢购
@property(nonatomic,strong) NSString <Optional> *activityId;    //活动ID
@property(nonatomic,strong) NSString <Optional> *depositamount; //预付款金额
@property(nonatomic,strong) NSString <Optional> *balanceamount; //尾款
@property(nonatomic,strong) NSString <Optional> *orderamount;   //订单总金额


@end
